<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>

        let resIds =[1,2,3];

        let aa=JSON.stringify(resIds);
        console.log(aa)

        function $(data){

            var data=data.substr(1,3);
            var value=  document.getElementById(data).value;

            function fn(){
                var b=2;
                function val(){
                    return value;
                }

            }

          return fn;

        }




function Fun(){
    console.log($('#abc').b);
}


    </script>
</head>
<body>

输入<input id="abc"   />
<button onclick="fun()">点击</button>
</body>
</html>